Release 10.1A: OpenEdge Development:
Progress 4GL Reference
WEEKDAY function
Evaluates a date expression and returns the day of the week as an integer from 1 (Sunday) to 7 (Saturday) for that date.
Syntax
dateA date expression for which you want the day of the week.
datetime-expressionAn expression that evaluates to a DATETIME or DATETIME-TZ. The WEEKDAY function returns the weekday of the date part of the DATETIME or DATETIME-TZ value.
ExampleThis procedure tells you the day of the week that you were born and how many days old you are:
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |